package com.questetra.OAuth.apps.Twitter.parser
{
	import mx.utils.StringUtil;
	
	public class TwitterDateUtil
	{
		public function TwitterDateUtil()
		{
		}
		
		public static function TwitterDateToDate(s:String):Date{
			s = StringUtil.trim(s);
			var splt:Array = s.split(" ");
			var time_zone:Number = Number(splt[4]);
			var base:String = splt[0] + " " + splt[1] + " " + splt[2] + " " + splt[3] + " " + "GMT" + splt[4] + " " + splt[5];
			var ret:Date = new Date(base);
			return ret;
		}

	}
}